﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmpShow.aspx.cs" Inherits="FPC.Offer.UI.MangerEmp.EmpShow1" %>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="../lib/html5shiv.js"></script>
<script type="text/javascript" src="../lib/respond.min.js"></script>
<![endif]-->
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link href="../H-ui/static/h-ui/css/H-ui.min.css" rel="stylesheet" />
    <link href="../H-ui/static/h-ui.admin/css/H-ui.admin.css" rel="stylesheet" />
    <link href="../H-ui/Lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" />
    <link href="../H-ui/static/h-ui.admin/skin/default/skin.css" rel="stylesheet" />
    <link href="../H-ui/static/h-ui.admin/css/style.css" rel="stylesheet" />

<!--[if IE 6]>
<script type="text/javascript" src="../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>用户查看</title>
</head>
<body>
<div class="cl pd-20" style=" background-color:#5bacb6;align-content:center">

	<dl style="margin-left:80px; color:#fff" id="dl">		          		
     
	</dl>
</div>
<div class="pd-20">
	<table class="table" style="margin-right:800px">
		<tbody id="tbody">

		</tbody>
	</table>
</div>
    <script src="../H-ui/Lib/jquery/1.9.1/jquery.min.js"></script>
    <script src="../H-ui/Lib/layer/2.4/layer.js"></script>
    <script src="../H-ui/static/h-ui/js/H-ui.js"></script>
    <script src="../H-ui/static/h-ui.admin/js/H-ui.admin.js"></script>
    <!--/_footer 作为公共模版分离出去-->
    <!--请在下方写此页面业务相关的脚本-->
    <script src="../H-ui/Lib/My97DatePicker/4.8/WdatePicker.js"></script>
    <script src="../H-ui/Lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
    <script src="../H-ui/Lib/laypage/1.2/laypage.js"></script>
    <script>
        $(function () {
            var url = location.href;
            var index = url.indexOf("=");
            var id = url.substring(index + 1)
            $.ajax({
                url: "../GeneralProcessor/MangerEmp/EmpManager.ashx",
                type: "post",
                data: {
                    Actioon: "<%=FPC.Offer.Common.EnumAction.Select %>",
                id: id
            },
            success: function (n) {
                var data = JSON.parse(n);
                var dl = new Array();
                var tr = new Array();
                $(data).each(function (i, item) {
                    var m = "";
                    var states = "";
                    switch (item.UserSex) {
                        case "1": m = '男'; break;
                        case "2": m = '女'; break;
                        case "3": m = '保密'; break;
                    }
                    switch (item.PoliticalStatus) {
                        case 1: states = "在职"; break;
                        case 2: states = "请假"; break;
                        case 3: states = "退休"; break;
                    }
                    dl.push("<dt><img src='" + item.UserPhoto + "' style='width:120px;height:150px'/></dt> ");
                    dl.push("<dd><span class='f-18'>" + item.UserName + "</span></dd>   ");
                    tr.push("  <tr><th class='text-r'>警号：</th><td>" + item.UserId + "</td></tr>");
                    tr.push("  <tr><th class='text-r'>性别：</th><td>" + m + "</td></tr>");
                    tr.push("  <tr><th class='text-r'>在职状态：</th><td>" + states + "</td></tr>");
                    tr.push("  <tr><th class='text-r'>手机：</th><td>" + item.UserTel + "</td></tr>");
                    tr.push("  <tr><th class='text-r'>邮箱：</th><td>" + item.UserEmail + "</td></tr>");
                    tr.push("  <tr><th class='text-r'>地址：</th><td>" + item.UserAddress + "</td></tr>");
                })
                $("#dl").append(dl.join(""));
                $("#tbody").append(tr.join(""));
            }
        })
    })
</script>

</body>
</html>

